package com.ruoyi.material.domain;

import java.math.BigDecimal;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 食品添加剂使用记录对象 tb_food_add_record
 *
 * @author wng
 * @date 2024-08-04
 */
public class FoodAddRecord extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    private Long id;

    /**
     * 部门id
     */
    private Long deptId;

    /**
     * 出库单id
     */
    @Excel(name = "出库单编号")
    private Long outId;

    /**
     * 食品添加剂名称
     */
    @Excel(name = "食品添加剂名称")
    private String name;

    /**
     * 添加的食物品种
     */
    @Excel(name = "添加的食物品种")
    private String foodName;

    /**
     * 添加的数量
     */
    @Excel(name = "添加的数量")
    private BigDecimal quantity;

    /**
     * 单位
     */
    @Excel(name = "单位")
    private String unit;

    /**
     * 生产日期
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "生产日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date produceTime;

    /**
     * 过期时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "过期时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date expireTime;

    /**
     * 使用时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "使用时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date useTime;

    /**
     * 操作员
     */

    private Long useBy;

    /**
     * 0正常 1删除
     */
    private Integer delFlag;

    /**
     * 操作员姓名
     */
    @Excel(name = "操作员")
    private String useByName;

    public String getUseByName() {
        return useByName;
    }

    public void setUseByName(String useByName) {
        this.useByName = useByName;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public Long getDeptId() {
        return deptId;
    }

    public void setDeptId(Long deptId) {
        this.deptId = deptId;
    }

    public void setOutId(Long outId) {
        this.outId = outId;
    }

    public Long getOutId() {
        return outId;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setFoodName(String foodName) {
        this.foodName = foodName;
    }

    public String getFoodName() {
        return foodName;
    }

    public void setQuantity(BigDecimal quantity) {
        this.quantity = quantity;
    }

    public BigDecimal getQuantity() {
        return quantity;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }

    public String getUnit() {
        return unit;
    }

    public void setProduceTime(Date produceTime) {
        this.produceTime = produceTime;
    }

    public Date getProduceTime() {
        return produceTime;
    }

    public void setExpireTime(Date expireTime) {
        this.expireTime = expireTime;
    }

    public Date getExpireTime() {
        return expireTime;
    }

    public void setUseTime(Date useTime) {
        this.useTime = useTime;
    }

    public Date getUseTime() {
        return useTime;
    }

    public void setUseBy(Long useBy) {
        this.useBy = useBy;
    }

    public Long getUseBy() {
        return useBy;
    }

    public void setDelFlag(Integer delFlag) {
        this.delFlag = delFlag;
    }

    public Integer getDelFlag() {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("deptId", getDeptId())
                .append("outId", getOutId())
                .append("name", getName())
                .append("foodName", getFoodName())
                .append("quantity", getQuantity())
                .append("unit", getUnit())
                .append("produceTime", getProduceTime())
                .append("expireTime", getExpireTime())
                .append("useTime", getUseTime())
                .append("useBy", getUseBy())
                .append("createTime", getCreateTime())
                .append("createBy", getCreateBy())
                .append("delFlag", getDelFlag())
                .toString();
    }
}
